select to_date(20150302,'yyyymmdd') from dual; or select to_char(to_date(20150302,'yyyymmdd'),'mm/dd/yyyy') from dual;